#include "widget.h"
#include <QApplication>
#include <QGuiApplication>
#include <QFontDatabase>
#include <QFont>

int main(int argc, char *argv[])
{
#if (QT_VERSION >= QT_VERSION_CHECK(5,15,0))
#if defined(Q_OS_ANDROID)  // 安卓ui
    QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);  // 适配高分屏
#elif defined(Q_OS_WIN32)
    qputenv("QT_ENABLE_HIGHDPI_SCALING", "1");
    QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
#endif
#endif
    QApplication a(argc, argv);
    RollCall w;

    w.show();

    return a.exec();
}
